package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;


import java.math.BigDecimal;

import yf.mall.entity.MallCardEntity;
import yf.mall.vo.MallCardVo;

                        
/**
 * 实体
 * 表名 mall_card
 *
 *
 *
 * @date Thu Sep 10 13:15:02 CST 2020
 */
@Data
public class MallCardDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //卡号
            @ExcelProperty("卡号")
            private String code;
        
                        //录入时间
            @ExcelProperty("录入时间")
            private Date createTime;
        
                        //使用时间
            @ExcelProperty("使用时间")
            private Date updateTime;
        
                        //使用用户
            @ExcelProperty("使用用户")
            private Long userId;
        
                        //可抵扣金额
            @ExcelProperty("可抵扣金额")
            private BigDecimal price;
        
    
    public MallCardDown() {

    }

    public MallCardDown(MallCardVo vo) {
        MallCardEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setCode(entity.getCode());
            
                                    this.setCreateTime(entity.getCreateTime());
            
                                    this.setUpdateTime(entity.getUpdateTime());
            
                                    this.setUserId(entity.getUserId());
            
                                    this.setPrice(entity.getPrice());
            
            }


}
